<template>
  <div class="box">
      酒店模块文件
      <div id="container"></div>
  </div>
</template>

<script>
  
  
export default {
  mounted(){
    window.onLoad  = function(){
      let map = new AMap.Map('container');
    }
    let url = 'https://webapi.amap.com/maps?v=1.4.15&key=您申请的key值&callback=onLoad';
    let jsapi = document.createElement('script');
    jsapi.charset = 'utf-8';
    jsapi.src = url;
    document.head.appendChild(jsapi);
  }
}
</script>

<style lang="less" scoped>
#container {
  width: 1000px;
  height: 800px;
  margin: 0 auto;
}
</style>